
var App={};App.CurrentVersion=490;App.apis=(function(){var List={};function loadCallback(api,response){if(response==-1){List[api].status='error';return;}
List[api].status='done';eval(response);var callbacks=List[api].callbacks;List[api].callbacks=[];for(var i=0;i<callbacks.length;i++)
if(callbacks[i])
callbacks[i]();List[api].callbacks=callbacks=response=null;}
return{LoadAPI:function(api,callback){if(!List[api]){List[api]={status:'waiting',callbacks:[callback]};App.ajax.GetFile("routines/compiler/plugin.php?url="+api+"&version="+Math.max(490,App.CurrentVersion),function(response){loadCallback(api,response);});}else
if(List[api].status=='done'){callback();}else
{List[api].callbacks.push(callback);}}}})();
App.array=(function(){function array_each(fn){for(var i=0,len=this.length;i<len;++i)
if(false==fn.call(this[i],i))
break;return this;}
function array_remove(item){for(var i=0,len=this.length;i<len;++i)
if(this[i]==item){this.splice(i,1);break;}
return this;}
function aray_find(item){for(var i=0,len=this.length;i<len;++i)
if(this[i]==item)
return i;return-1;}
function array_insert(item,pos){for(var i=this.length;i>pos;--i)
this[i]=this[i-1];this[pos]=item;return this;}
function array_move(oldpos,newpos){var item=this[oldpos];this.splice(oldpos,1);array_insert.call(this,item,newpos);return this;}
function array_extand(elem){if(!elem)elem=[];elem.each=array_each;elem.insert=array_insert;elem.move=array_move;elem.find=aray_find;elem.remove=array_remove;return elem;}
return{Extand:array_extand,each:function(array,fn){return array_each.call(array,fn);},insert:function(array,item,pos){return array_insert.call(array,item,pos);},move:function(array,oldpos,newpos){return array_move.call(array,oldpos,newpos);},find:function(array,item){return aray_find.call(array,item);},remove:function(array,item){return array_remove.call(array,item);}}})();
App.func=(function(){function bind(context){var __method=this;return Extand(function(){return __method.apply(context,arguments);})}
function delay(timeout){var __method=this;var args=arguments;return Extand(function(){window.setTimeout(function(){return __method.apply(__method,args);},timeout);})}
function attributes(){var __method=this;var args=arguments;return Extand(function(){return __method.apply(this,args);})}
function group(){if(!arguments[0])return this;var __method=this;var args=arguments;return Extand(function(){__method.apply(this,arguments);for(var i=0;i<args.length;i++)
args[i].apply(this,arguments);});}
function Extand(func){func.bind=bind;func.delay=delay;func.attributes=attributes;func.group=group;return func;}
return{Extand:Extand,bind:function(func,context){return bind.call(func,context);},delay:function(func,timeout){return delay.call(func,timeout);},delayed:function(func,obj,timeout){return delayed.call(func,obj,timeout);},attributes:function(func){return attributes.apply(func,Array.prototype.slice.call(arguments,1));},group:function(){if(!arguments[1])return arguments[0];return group.apply(arguments[0],Array.prototype.slice.call(arguments,1));},emptyFunction:function(){}};})();
App.event=(function(){function detach(elem,event,callback){if(elem.removeEventListener){elem.removeEventListener(event,callback,false);}else
if(elem.detachEvent){elem.detachEvent("on"+event,callback);}}
function attach(elem,event,callback){if(elem.addEventListener){elem.addEventListener(event,callback,false);}
else
if(elem.attachEvent)
{elem.attachEvent("on"+event,callback);}}
return{cancelEvent:function(event){if(!event)event=window.event;event.cancelBubble=true;if(event.stopPropagation)event.stopPropagation();return false;},attach:attach,detach:detach}})();
App.user=(function(){var LastActivity=0;function onUnactivity(){App.event.attach(document,"mousemove",onActivity);App.event.attach(document,"keydown",onActivity);}
function onActivity(){LastActivity=new Date().getTime();App.event.detach(document,"mousemove",onActivity);App.event.detach(document,"keydown",onActivity);window.setTimeout(onUnactivity,500);}
onUnactivity();return{HasActivity:function(custom_timeout){return(new Date().getTime()-LastActivity<(custom_timeout||30000));}}})();App.user.browser=(function(){document.cookie="tc=1;";return{ISIE6:(navigator.appVersion.search(/MSIE 6.0.+/)!=-1),ISIE7:(navigator.appVersion.search(/MSIE 7.0.+/)!=-1),ISIE8:(navigator.appVersion.search(/MSIE 8.0.+/)!=-1),ISIE:(navigator.appName=="Microsoft Internet Explorer"),ISFIREFOX:(navigator.appName=="Netscape"),ISOPERA:(navigator.userAgent.indexOf("Opera")!=-1),ISSAFARI:(navigator.userAgent.indexOf("Safari")!=-1),ISCHROME:(navigator.userAgent.indexOf("Chrome")!=-1),ISIPHONE:(navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))||(navigator.userAgent.match(/iPad/i))?true:false,ISMOBILE:(navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))||(navigator.userAgent.match(/iPad/i))||(navigator.userAgent.match(/android/i))||(navigator.userAgent.match(/blackberry/i))?true:false,ISCOOKIESENABLED:(navigator.cookieEnabled&&document.cookie.indexOf("tc")!=-1)?true:false,lang:_L("fr")}})();App.user.screen=(function(){var this_obj={Width:0,Height:0};function Update(){if(!App.user.browser.ISIE){this_obj.Width=window.innerWidth;this_obj.Height=window.innerHeight;}else{this_obj.Width=document.documentElement.clientWidth;this_obj.Height=document.documentElement.clientHeight;}
if(!this_obj.Width||!App.search||!App.search.manager||typeof(App.search.manager.searchSetSize)!="function"||!App.dock||typeof(App.dock.setSize)!="function")
window.setTimeout(Update,50);else{App.search.manager.searchSetSize();App.dock.setSize();}}
Update();App.event.attach(window,"resize",Update);return this_obj;})();
App.Class=(function(){function Class(parent){function Base(){if(parent)
parent.apply(this,arguments);if(Base.prototype.init)
Base.prototype.init.apply(this,arguments);}
if(parent)
for(var name in parent.prototype)
Base.prototype[name]=parent.prototype[name];Base.Extand=classExtand;return Base;}
function classExtand(object){var child=Class(this);for(var name in object)
child.prototype[name]=object[name];return child;}
return Class();})();
App.dom=(function(){var head=document.getElementsByTagName('head')[0];var cssSelectors={};cssSelectors["."]=function(from,className){var results=[];if(typeof(className)=="string")
className=new RegExp("\\b"+className+"\\b","gi");App.array.each(from,function(){if(this.className.match(className))
results.push(this);});return results;}
cssSelectors["#"]=function(from,Id){var results=[];if(typeof(Id)=="string")
Id=new RegExp("\\b"+Id+"\\b","gi");App.array.each(from,function(){if(this.id.match(Id))
results.push(this);});return results;}
cssSelectors[" "]=function(from,tagName){var results=[];App.array.each(from,function(){App.array.each(this.getElementsByTagName(tagName),function(){results.push(this);});});return results;}
cssSelectors[">"]=function(from,tagName){var results=[];tagName=tagName.toUpperCase();App.array.each(from,function(){App.array.each(this.childNodes,function(){if(tagName=="*"||this.tagName==tagName)
results.push(this);});});return results;}
var STANDARD_SELECT=/^[^\s>+~]/;var STREAM=/[\s\[#.:>+~()@]|[^\s\[#.:>+~()@]+/g;var WHITESPACE=/\s*([\s>+~(),]|^|$)\s*/g;var IMPLIED_ALL=/([\s>+~,]|[^(]\+|^)([#.:@])/g;function cssSelect(selector,node){if(STANDARD_SELECT.test(selector))
selector=" "+selector;var selectors=selector.replace(WHITESPACE,"$1").replace(IMPLIED_ALL,"$1*$2").match(STREAM)||[];var from=[node];for(var i=0;i<selectors.length;i+=2){if(cssSelectors[selectors[i]]){results=cssSelectors[selectors[i]](from,selectors[i+1]);from=results;}}
return results;}
function removeSheet(sheet){if(sheet.parentNode==head){head.removeChild(sheet);return true;}else
return false;}
function select(selector){var ret=[];if(selector){if(this.querySelectorAll)
ret=this.querySelectorAll(selector);else{var rules=selector.split(", ");for(var j=0;j<rules.length;j++)
ret=ret.concat(cssSelect(rules[j],this));}}
return App.array.Extand(ret).each(function(){elem_extand(this)});}
function removeClass(myClass,node){if(typeof(myClass)=="string")
myClass=new RegExp("\\b"+myClass+"\\b","gi");this.className=this.className.replace(myClass," ").replace(/[\s]+/gi," ");return this;}
function addClass(myClass){removeClass.call(this,myClass);this.className=String(this.className+" "+myClass).replace(/[\s]+/gi," ");return this;}
function hasClass(myClass){if(typeof(myClass)=="string")
myClass=new RegExp("\\b"+myClass+"\\b","gi");var ret=this.className.match(myClass);if(ret)
return ret[0];else
return false;}
function createElement(tag){return elem_extand(document.createElement(tag));}
function wrap(inner,outer){var wrapper=typeof(outer)=="object"?elem_extand(outer):createElement(outer||"div");wrapper.html(inner);return wrapper;}
function html(html){if(typeof(html||"")=="string")
this.innerHTML=html||"";else{this.innerHTML="";this.appendChild(html);}
return this;}
function append(html){if(typeof(html)=="string"){var tempNode=wrap(html);while(tempNode.childNodes.length)
this.appendChild(tempNode.childNodes[0]);}else
this.appendChild(html);}
function css(cssRules){var styles=this.style;for(var style in cssRules){styles[style]=cssRules[style];}
return this;}
function remove(){if(this.parentNode)
this.parentNode.removeChild(this);}
function elem_extand(elem){elem.html=html;elem.append=append;elem.css=css;elem.addClass=addClass;elem.hasClass=hasClass;elem.removeClass=removeClass;elem.select=select;elem.remove=remove;return elem;}
return{Array:App.array.Extand,Element:elem_extand,createElement:createElement,wrap:wrap,removeCSSSheet:removeSheet,removeCSSLink:removeSheet,addCSSSheet:function(text){var v_css_text=createElement('style');v_css_text.setAttribute("type","text/css");if(v_css_text.styleSheet){v_css_text.styleSheet.cssText=text;}else{v_css_text.appendChild(document.createTextNode(text));}
head.appendChild(v_css_text);return v_css_text;},addCSSLink:function(url){var v_css_link=createElement('link');v_css_link.setAttribute("rel","stylesheet");v_css_link.setAttribute("type","text/css");v_css_link.setAttribute("href",url);head.appendChild(v_css_link);return v_css_link;},addClass:function(myClass,node){return addClass.call(node,myClass);},hasClass:function(myClass,node){return hasClass.call(node,myClass);},removeClass:function(myClass,node){return removeClass.call(node,myClass);},css:function(css,node){return removeClass.call(node,css);},html:function(html,node){return html.call(node,html);},append:function(html,node){return append.call(node,html);},remove:function(node){return remove.call(node);},select:function(selector,node){return select.call((node||document),selector);}}})();
App.ajax=(function(){var head=document.getElementsByTagName('head')[0];return{include:function(url,attributes){var script=App.dom.createElement('script');script.setAttribute('src',url);script.setAttribute('type','text/javascript');for(var attr in attributes)
script.setAttribute(attr,attributes[attr]);head.appendChild(script);return script;},require:function(url){document.write("<script type='text/javascript' src='"+url+"'><\/script>");},CreateAJAXObject:function(){var xmlreq=false;if(window.XMLHttpRequest)
xmlreq=new XMLHttpRequest();else
if(window.ActiveXObject)
xmlreq=new ActiveXObject("Microsoft.XMLHTTP");return xmlreq;},GetFile:function(url,callback,context,data){var xmlreq=this.CreateAJAXObject();xmlreq.onreadystatechange=function(){if(xmlreq.readyState==4){try{if(callback)
callback.call(context,xmlreq.status==200?xmlreq.responseText:-1,data);}catch(e){}
xmlreq.onreadystatechange=App.func.emptyFunction;xmlreq=callback=context=data=null;}};xmlreq.open("GET",url,true);xmlreq.send(null);},PostFile:function(url,postdata,callback,context,data){var xmlreq=this.CreateAJAXObject();xmlreq.onreadystatechange=function(){if(xmlreq.readyState==4){try{if(callback)
callback.call(context,xmlreq.status==200?xmlreq.responseText:-1,data);}catch(e){}
xmlreq.onreadystatechange=App.func.emptyFunction;xmlreq=callback=context=data=null;}};xmlreq.open("POST",url,true);xmlreq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlreq.send(postdata);postdata=null;}}})();
App.fx={};App.fx.timers=(function(){var queue={};var nextID=timerID=0;function stopMe(){delete queue[this._id];}
function startMe(){queue[this._id]=this._func;if(!timerID)timerID=window.setTimeout(runTimers,33);}
function isRunning(){return(queue[this._id]==this._func);}
var $time=Date.now||function time(){return+new Date;};function runTimers(){var running=false,time=$time();for(var id in queue){queue[id](time);running=true;}
if(running)
timerID=window.setTimeout(runTimers,33);else
timerID=0}
return{queue:function queueTimer(func){var timerObj={_id:nextID++,_func:func,stop:stopMe,start:startMe,running:isRunning}
timerObj.start();return timerObj;}}})();App.fx.animate=(function(){var easing_func={classic:function(step){return step;},slide:function(step){return step*(2-step);},bounce:function(step){return step>=1?1:1-Math.cos(step*10)*Math.exp(-step*5);}}
return function(object,speed,easing,animfunc,callback){if(typeof(easing)!="function"){if(easing_func[easing])easing=easing_func[easing];else easing=easing_func.classic;}
var startTime=0;var timer=App.fx.timers.queue(run);function run(time){var step=0;if(!startTime)
startTime=time;else
step=Math.min(1,(time-startTime)/speed);animfunc.call(object,easing(step));if(step>=1){if(callback)
callback.call(object,null);stop();}}
function stop(){if(timer)
timer.stop();timer=callback=object=null;}
return{stop:stop,running:function(){return(timer?timer.running():false);}};}})();App.fx.cancelAll=function(){if(this.cssFx)
this.cssFx.stop();if(this.propertyFx)
this.propertyFx.stop();this.cssFx=this.propertyFx=null;return null;}
App.fx.animateProperty=function(element,rules,speed,easing,callback){var InitValues=[];for(var i in rules){InitValues[i]=parseFloat(element[i])||0;rules[i]=parseFloat(rules[i]||0)-InitValues[i];}
function anim(pos){for(var i in InitValues)
this[i]=InitValues[i]+rules[i]*pos;}
if(element.propertyFx)element.propertyFx.stop();element.propertyFx=App.fx.animate(element,speed,easing,anim,callback);return element.propertyFx;};App.fx.animateCSS=(function(){var numberEx=/[\-.0-9]+/;return function(element,rules,speed,easing,callback){var InitValues={};for(var i in rules){InitValues[i]=parseFloat(numberEx.exec(element.style[i]))||0;element.style[i]=String(rules[i]).replace(numberEx,InitValues[i]);rules[i]=(parseFloat(numberEx.exec(rules[i]))||0)-InitValues[i];}
function anim(pos){for(var i in InitValues)
this.style[i]=this.style[i].replace(numberEx,InitValues[i]+rules[i]*pos);}
if(element.cssFx)element.cssFx.stop();element.cssFx=App.fx.animate(element,speed,easing,anim,callback);return element.cssFx;};})();App.fx.hide=(function(){function end_hide(){this.style.display='none';this.style.overflow='';this.style.height='';}
return function(div,callback,ease){if(div.style.display=='none')return App.fx.cancelAll.call(div);var currentStyle=(window.getComputedStyle?window.getComputedStyle(div,null):div.currentStyle)||div.style;var height=Math.max(0,(div.offsetHeight-(parseInt(currentStyle.paddingBottom)||0)-(parseInt(currentStyle.paddingTop)||0)));div.style.height=height+'px';div.style.overflow='hidden';return App.fx.animateCSS(div,{height:'0px'},700,ease||'slide',App.func.group(end_hide,callback));};})();App.fx.show=(function(){function end_show(){this.style.display='';this.style.overflow='';this.style.height='';}
return function(div,callback,ease){if(div.style.display==''&&div.style.height=='')return App.fx.cancelAll.call(div);div.style.display='';div.style.height='';var currentStyle=(window.getComputedStyle?window.getComputedStyle(div,null):div.currentStyle)||div.style;var height=Math.max(0,(div.offsetHeight-(parseInt(currentStyle.paddingBottom)||0)-(parseInt(currentStyle.paddingTop)||0)));div.style.overflow='hidden';div.style.height='0px';return App.fx.animateCSS(div,{height:height+'px'},700,ease||'slide',App.func.group(end_show,callback));}})();App.fx.fadeIn=(function(){function end_show(){this.style.display='';this.style[App.user.browser.ISIE?"filter":"opacity"]="";}
var isIE=App.user.browser.ISIE;return function(div,callback){if(div.style.display!='none'&&div.style[isIE?"filter":"opacity"]=="")return App.fx.cancelAll.call(div);div.style.display='';if(isIE){if(div.style.filter=='')div.style.filter="alpha(opacity=0)";}else{if(div.style.opacity=='')div.style.opacity=0;}
return App.fx.animateCSS(div,isIE?{filter:"alpha(opacity=100)"}:{opacity:1},800,0,App.func.group(end_show,callback));}})();App.fx.fadeOut=(function(){function end_hide(){this.style.display='none';this.style[App.user.browser.ISIE?"filter":"opacity"]="";}
var isIE=App.user.browser.ISIE;return function(div,callback){if(div.style.display=='none')return App.fx.cancelAll.call(div);if(isIE){if(div.style.filter=='')div.style.filter="alpha(opacity=100)";}else{if(div.style.opacity=='')div.style.opacity=1;}
return App.fx.animateCSS(div,isIE?{filter:"alpha(opacity=0)"}:{opacity:0},800,0,App.func.group(end_hide,callback));}})();
App.ui={};App.ui.ButtonHelper={GetHTML:function(Text){return'<span style="'+(App.user.browser.ISIE6?"position:relative;":"")+'display:block;color:black;text-shadow:1px 1px 2px #ccc;margin-right:8px;height:18px;background:transparent url(include/skins/button_small_g.png) no-repeat left top;" onmouseover="this.style.backgroundPosition=\'left -18px\'"  onmouseout="this.style.backgroundPosition=\'left 0px\'"><span style="'+(App.user.browser.ISIE6?"position:relative;":"")+'cursor:pointer;font-weight:bold;height:14px;padding-right:8px;padding-left:8px;margin-right:-8px;padding-top:2px;padding-bottom:2px;display:block;background:transparent url(include/skins/button_end_small_g.png) no-repeat right top;"  onmouseover="this.style.backgroundPosition=\'right -18px\'"  onmouseout="this.style.backgroundPosition=\'right 0px\'">'+Text+'</span></span>';}}
App.ui.PickerHelper=(function(){var Elem=null;var options=null;function Refresh(){var HTML="";for(var i=0;i<options.variables.length;i++){switch(options.variables[i].type){case"menu":HTML+='<div style="">';for(var j=0;j<options.variables[i].values.length;j++){HTML+='<div onmouseout="this.style.background=\'\'" onclick="App.ui.PickerHelper.Pick('+i+','+j+');" onmouseover="this.style.background=\'#ECECEC\'" style="cursor:pointer;padding:5px">'+options.variables[i].values[j]+'</div>';}
HTML+="</div>";break;case"splitter":HTML+="<div style='border:solid grey;text-align:center;padding:4px;border-width:"+(i?1:0)+"px 0 1px 0;background:#ccc'>"+(options.variables[i].value||"")+"</div>";break;case"icon":var num_icons=140;HTML+="<div style='padding:5px'>";for(var j=0;j<num_icons;j++){HTML+='<div onclick="App.ui.PickerHelper.Pick('+i+','+j+');" style="width:16px;height:16px;cursor:pointer;float:left;margin:1px;background:url(include/skins/tab-icons-all.png?v=480) -'+(18*(j-16*parseInt(j/16)))+'px -'+
(18*parseInt(j/16))+'px"></div>';}
HTML+="<br clear='all'></div>";break;case"color_array":HTML+="<div style='padding:5px'>"+(options.variables[i].name||"");for(var j=0;j<options.variables[i].values.length;j++){HTML+="<span style='float:left;background:rgb("+options.variables[i].values[j]+");width:16px;height:16px;cursor:pointer;"
+(options.variables[i].value==j?"border:1px solid #AAAAAA;margin:2px;":"margin:3px;")
+"' onclick='App.ui.PickerHelper.Pick("+i+","+j+");'></span>";}
HTML+="<br clear='all'></div>";break;case"html":HTML+=options.variables[i].value;break;}}
Elem.innerHTML=HTML;}
return{Pick:function(var_id,val){options.variables[var_id].value=val;if(options.callback)
options.callback(var_id,val);else
this.Hide();},Show:function(attach,in_options){options=in_options;if(!options.width)options.width=76;if(!options.margin)options.margin=options.width;this.Hide();if(!Elem){Elem=App.dom.createElement('span');Elem.onmouseup=App.event.cancelEvent;}
Elem.css({display:'none',position:"absolute",textAlign:"left",marginLeft:"-"+(options.margin)+"px",marginTop:"14px",background:"white",width:options.width+"px",border:'1px solid #AAAAAA',zIndex:600,color:"black",fontSize:"11px"});Refresh();attach.parentNode.insertBefore(Elem,attach);App.fx.show(Elem,null,'bounce');if(Elem.offsetLeft<0)
Elem.style.marginLeft="-"+(options.margin+Elem.offsetLeft)+"px";App.event.attach(document,"mouseup",App.ui.PickerHelper.Hide)},Hide:function(){if(Elem)App.fx.hide(Elem);App.event.detach(document,"mouseup",App.ui.PickerHelper.Hide);}}})();App.ui.ColorPickerHelper={colors:['255,255,255','137,79,202','255,0,236','40,40,40','193,193,193','70,192,237','216,0,0','255,222,0','105,171,0'],colorNames:['white','purple','pink','black','grey','blue','red','yellow','green'],Show:function(attachNode,sel_color,ret_func){App.ui.PickerHelper.Show(attachNode,{variables:[{name:"",type:"color_array",value:sel_color,values:this.colors}],callback:function(name,value){sel_color=value;ret_func(value,App.ui.ColorPickerHelper.colors[value]);App.ui.PickerHelper.Hide();}});}}
App.ui.PreviewHelper=(function(){var PreviewTimer=null;var PreviewElement=null;function killPreview(){if(PreviewTimer)window.clearTimeout(PreviewTimer);if(PreviewElement)PreviewElement.parentNode.removeChild(PreviewElement);PreviewElement=null;PreviewElement=null;}
function onMouseOutEvent(){killPreview();this.onmouseout=null;}
return function(sourceNode,content,callback){killPreview();PreviewTimer=window.setTimeout(function(){PreviewElement=App.dom.createElement('div');PreviewElement.addClass("previewHelper");PreviewElement.css({position:'absolute',color:'black',textDecoration:'none',zIndex:'200',background:'url(http://www.ustart.org/include/skins/sidebar_preview_top.gif) -100px top repeat-x',width:'400px',paddingTop:'8px'});PreviewElement.html('<div style="-moz-box-shadow:3px 3px 3px rgba(0, 0, 0, 0.3);'
+'-webkit-box-shadow:3px 3px 3px rgba(0, 0, 0, 0.3);'
+'box-shadow:3px 3px 3px rgba(0, 0, 0, 0.3);'
+'zoom:1;filter: progid:DXImageTransform.Microsoft.Shadow(color=\'black\', Direction=135, Strength=3);'
+'background:#F7F7F7;border: 1px solid #BBBBBB;border-top:none;padding:4px;padding-bottom:10px;">'+content+'</div>');PreviewElement=App.dom.wrap(PreviewElement);sourceNode.appendChild(PreviewElement);if(callback)PreviewTimer=window.setTimeout(callback,700);},500);sourceNode.onmouseout=onMouseOutEvent;}})();App.ui.DatePickerHelper={Show:function(elem){App.apis.LoadAPI('datepicker',function(){App.ui.DatePickerHelper.Show(elem);});}}
App.ui.OpacityAnimHelper={DisplayDiv:App.fx.fadeIn,HideDiv:App.fx.fadeOut};App.ui.HighlighBloc=function(elem,factor,raise){var blocDiv=typeof(elem)=="string"?$G(elem):elem;function end(){this.borderColor=this.borderWidth=this.borderStyle="";}
function anim(pos){var color=parseInt(Math.abs(2*255*(0.5-pos)));this.border="2px solid rgb(255,"+color+","+color+")";}
return App.fx.animate(blocDiv.style,1500,0,anim,end);}
var JSONHelper=(function(){var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
return{ToText:function(object){if(object==null)return"null";switch(typeof(object)){case"string":return quote(object);break;case"object":var text=(typeof(object.length)=="number")?"[":"{";for(var i in object){if(typeof(object[i])!="undefined"&&typeof(object[i])!="function"){if(text!="{"&&text!="[")
text+=",";if(typeof(object.length)!="number")
text+="'"+i+"':";text+=JSONHelper.ToText(object[i]);}}
text+=(typeof(object.length)=="number")?"]":"}";return text;break;case"boolean":return object?1:0;break;case"number":return object;break;case"undefined":default:return"null";break;}
return"";},ToObject:function(text){if(!text)
return null;try{if(text.match(/[^\t\n\r ]/)!="{")
return eval(text);else
return eval("("+text+")");}catch(e){return null;}}}})();
function GetRGBColor(color){var colors;if(color.substr(0,1)=="#")
colors=[parseInt(color.substr(1,2),16),parseInt(color.substr(3,2),16),parseInt(color.substr(5,2),16)];else{colors=color.substr(4).split(",");if(colors.length<3)return[0,0,0];colors[0]=parseInt(colors[0]);colors[1]=parseInt(colors[1]);colors[2]=parseInt(colors[2].substr(0,colors[2].length-1));}
return colors;}
function scanf(string,format,answer){var Searchs=format.split("%");var CurAnsIndex=0;for(var CurIndex=0;CurIndex<Searchs.length-1;CurIndex++){var delimiter=Searchs[CurIndex+1].substr(0,1);Searchs[CurIndex+1]=Searchs[CurIndex+1].substr(1);var i=string.indexOf(Searchs[CurIndex]);var i2=string.indexOf(Searchs[CurIndex+1],i+Searchs[CurIndex].length);if(i==-1||i2==-1)break;if(delimiter=='s'){answer[CurAnsIndex]=string.substring(i+Searchs[CurIndex].length,i2);CurAnsIndex++;}
string=string.substr(i2);}
return string;}
var PopupHelper=(function(){var Div=null;var Title="";var Width=500;var cssAnim=null;var lowLight=null;function BuildLayout(){lowLight=App.dom.createElement('span');Div=App.dom.createElement('span');$G("body_div").appendChild(lowLight);$G("body_div").appendChild(Div);lowLight.css({position:'fixed',zIndex:100,display:'none',top:'0px',right:'0px',left:'0px',bottom:'0px',opacity:0.2,filter:"alpha(opacity=20)",background:"black"});Div.css({position:'fixed',zIndex:300,display:'none'});lowLight.addClass("popup");Div.addClass("popup");lowLight.onclick=function(){PopupHelper.HidePopup();};}
return{ShowEmptyPopup:function(HTML,in_Width){if(!Div)
BuildLayout();Width=in_Width>0?in_Width:500;if(Width>App.user.screen.Width)Width=App.user.screen.Width;Div.innerHTML=HTML;this.DisplayPopup();},ShowPopup:function(HTML,in_Title,in_Width){if(in_Title)Title=in_Title;this.ShowEmptyPopup('<div style="-moz-box-shadow:0 0 10px rgba(0, 0, 0, 0.7);'
+'-webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.7);'
+'box-shadow:0 0 10px rgba(0, 0, 0, 0.7);'
+'zoom:1;filter: progid:DXImageTransform.Microsoft.Shadow(color=\'black\', Direction=135, Strength=3);'
+'background:url(include/skins/style/header_blue.png) top repeat-x;'
+'-moz-border-radius:5px;-o-border-radius:5px;-webkit-border-radius:5px;'
+'border:1px solid #009ADF;">'
+'<div style="font-size:12px;padding:2px;"><img src="include/skins/close.gif" style="float:right;width:14px" onclick="PopupHelper.HidePopup()" style="cursor:pointer"><b>'+Title+'</b></div>'
+'<div style="background:url(include/skins/back/back_default.png) repeat-x #FFFFFF;-moz-border-radius:0px 0px 5px 5px;-o-border-radius:0px 0px 5px 5px;-webkit-border-radius:0px 0px 5px 5px;border-top:1px solid #009ADF;">'
+HTML
+'</div></div>',in_Width);},ShowPopupPage:function(page,Title,in_Width){App.ajax.GetFile(page+'_'+_L('fr')+".html",function(HTML){if(HTML!=-1)
PopupHelper.ShowPopup(HTML,Title,in_Width);else
App.ajax.GetFile(page+'_en.html',function(HTML){if(HTML!=-1)
PopupHelper.ShowPopup(HTML,Title,in_Width);});});},IsClosed:function(){return(Div.style.display=='none');},DisplayPopup:function(opacity){if(cssAnim)cssAnim.stop();if(App.user.screen.Width>Width)Div.style.left=(App.user.screen.Width/2-Width/2)+'px';else left="0px";cssAnim=App.fx.fadeIn(Div);Div.css({width:Width+"px",top:Math.max((App.user.screen.Height-Math.max(Div.offsetHeight,400))/2,0)+'px'});lowLight.css({display:''});},HidePopup:function(){lowLight.css({display:'none'});Div.css({display:''});if(cssAnim)cssAnim.stop();cssAnim=App.fx.fadeOut(Div);window.setTimeout(function(){if(Div.style.display=='none')Div.innerHTML="";},1000);}}})();var RssReader={ShowFeed:function(url,name){App.apis.LoadAPI("reader3",function(){RssReader.Load(url,name)});},OpenNews:function(rsss_url,item_url){App.apis.LoadAPI("reader3",function(){RssReader.Load(-1,-1);RssReader.OpenNews(rsss_url,item_url);});}};var MediaPlayer=(function(){return{PlayFile:function(url){var Container=document.getElementById('flashdiv');Container.innerHTML="";if(App.user.browser.ISMOBILE){Container.innerHTML='<embed width="1px" height="1px" src="'+file+'" autoplay="true"/>';Container.style.display='';return true;}
var Content='';if(url.match(/(\.mp3)/gi)){Content+='<center><embed wmode="transparent" src="include/plugins/dewplayer.swf" flashvars="showtime=1&autoplay=yes&autostart=true&mp3='+escape(url)+'" width="220" height="20"/></center>';Container.innerHTML=Content;Container.style.display='';}else
if(url.match(/\.(mp4|m4v|flv)/gi)){Content+='<embed type="application/x-shockwave-flash" src="include/plugins/player-viral.swf" flashvars="&autostart=true&file='+escape(url)+'" allowfullscreen="true" width="598" height="450"/>';PopupHelper.ShowPopup(Content,_L('Media Player'),600);}else
{var MIMEType=url.indexOf(".swf")!=-1?'application/x-shockwave-flash':url.indexOf(".m4v")!=-1?'video/m4v':url.indexOf(".m4a")!=-1?'audio/m4a':'';Content+='<embed src="'+url+'"   scale="ASPECT" allowfullscreen="true" type="'+MIMEType+'" width="598" height="450"/>';PopupHelper.ShowPopup(Content,_L('Media Player'),600);}}};})();var ShareHelper={Share:function(in_url,in_title,in_image){App.apis.LoadAPI("share",function(){ShareHelper.Share(in_url,in_title,in_image)});}};
function addSearchEngine()
{if(GetCookie('uStartAdvert')<2)SetCookie('uStartAdvert',2);if(App.user.browser.ISIE)
window.external.AddSearchProvider('plugins/ustart.xml');if(App.user.browser.ISFIREFOX){if((typeof window.sidebar=="object")&&(typeof window.sidebar.addSearchEngine=="function"))
window.sidebar.addSearchEngine("http://www.ustart.org/plugins/ustart.xml","http://www.ustart.org/favicon.ico",'uStart','Web');navigator.registerContentHandler('application/vnd.mozilla.maybe.feed','http://www.ustart.org/?rssurl=%s','uStart');}}
function ShowHelp(){OpenPopup('http://www.ustart.org/help/'+_L('help_fr_pop.html'),962,660);return true;}
function SetAsStartpage(alink){if(!GetCookie('uStartAdvert')<2)SetCookie('uStartAdvert',2);if(App.user.browser.ISIE){alink.style.behavior='url(#default#homepage)';alink.setHomePage('http://www.ustart.org');PopupHelper.ShowPopupPage('help/help_home_ie',_L('Merci'),700);}else{PopupHelper.ShowPopupPage('help/help_home_ff',_L('Merci'),700);}}
function $G(id){return document.getElementById(id);}
var MenuButtonImg={"Menu":[0,5],"Close":[1,6],"Reduce":[2,7],"More":[3,8],"Help":[4,9],"Delete":[10,11],"Color":[12,13]}
function GetButtonImg(attr,posx,width){return'<IMG style="margin-bottom:-1px;background:url(http://cdn.ustart.org/include/skins/sprites.'+(App.user.browser.ISIE6?'gif':'png')+'?v='+Math.max(480,App.CurrentVersion)+') -'+posx+'px -12px;width:'+width+'px;height:12px;" src="http://cdn.ustart.org/JSblocks/img/s.gif" '+attr+'>';}
function GetMenuButtonImg(id){return'<IMG style="margin-bottom:-1px;background:url(http://cdn.ustart.org/include/skins/sprites.'+(App.user.browser.ISIE6?'gif':'png')+'?v='+Math.max(480,App.CurrentVersion)+') -'+MenuButtonImg[id][0]*12+'px 0px;width:12px;height:12px;" src="http://cdn.ustart.org/JSblocks/img/s.gif" onmouseover="this.style.backgroundPosition=\'-'+((MenuButtonImg[id][1])*12)+'px 0px\'" onmouseout="this.style.backgroundPosition=\'-'+(MenuButtonImg[id][0]*12)+'px 0px\'">';}
function GetIconImg(attr,posx,width){return'<IMG style="background:url(http://cdn.ustart.org/JSblocks/img/logos.gif?v='+Math.max(480,App.CurrentVersion)+') -'+posx+'px;width:'+width+'px;height:12px;" src="http://cdn.ustart.org/JSblocks/img/s.gif" '+attr+'>';}
function imgloaded(obj){obj.width=obj.height="16";if(obj.previousSibling)
obj.previousSibling.width=obj.previousSibling.height="0";}
function getimgurl(text)
{if(!text)return"";text=text.replace("http://","").replace("https://","");if(text.search("/")!=-1)
text=text.substr(0,text.search("/"));return text;}
function getfavicon(url)
{return"http://cdn.ustart.org/routines/rss2js/getfavicon.php?url="+escape(url);}
function getNumLines(text){var numlines=0;while(text.indexOf("\n")!=-1){numlines++;text=text.substr(text.indexOf("\n")+1,text.length);}
return numlines;}
function FixPng(img){if(document.all){img.parentNode.style.width=img.offsetWidth;img.parentNode.style.height=img.offsetHeight;img.parentNode.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src="'+img.src+'")';img.style.visibility='hidden';}}
function getURLParam(strParamName){var strReturn="";var strHref=window.location.href;if(strHref.indexOf("#")>-1)
strHref=strHref.substr(0,strHref.indexOf("#"));if(strHref.indexOf(strParamName)>-1&&strHref.indexOf("?")>-1){var strQueryString=strHref.substr(strHref.indexOf("?"));var aQueryString=strQueryString.split("&");for(var iParam=0;iParam<aQueryString.length;iParam++){if(aQueryString[iParam].toLowerCase().indexOf(strParamName+"=")>-1){var aParam=aQueryString[iParam].split("=");strReturn=aParam[1];break;}}}
while(strReturn.indexOf("+")>-1)strReturn=strReturn.replace("+"," ");return unescape(strReturn);}
function htmlentities(string){return string.replace(/</gi,"&lt;");}
function togledivdisplay(division)
{with(document.getElementById(division).style)
if(display=='none')
display='';else
display='none';}
function OpenSmartPopup(url,width,height,evt,title){if(App.user.browser.ISIE6)return OpenPopupNoReturn(url,width,height);var targ;if(!evt)evt=window.event;if(evt&&evt.target)
targ=evt.target;else if(evt&&evt.srcElement)
targ=evt.srcElement;if(targ&&targ.nodeType==3)
targ=targ.parentNode;if((App.user.browser.ISIE&&evt.button==4)||(!App.user.browser.ISIE&&evt.button==1)){targ.href=url;}else
targ.href='javascript:OpenPopupNoReturn("'+url+'",'+width+','+height+');';}
function OpenPopupNoReturn(url,width,height){window.open(url,'','width='+width+',height='+height+',scrollbars=yes,resizable=yes,top='+((screen.height-height)/2-30)+',left='+((screen.width-width)/2));}
function OpenPopup(url,width,height){return window.open(url,'','width='+width+',height='+height+',scrollbars=yes,resizable=yes,top='+((screen.height-height)/2-30)+',left='+((screen.width-width)/2));}
App.data=(function(){var UserData={};var ToSave=null;var TimerSave=null;var IsSending=false;function readCookie(name){var cookiesText=document.cookie;var cookieValue="";var search=name+"=";var offset=cookiesText.lastIndexOf(search);if(offset!=-1){offset+=search.length;var end=cookiesText.indexOf(";",offset);if(end==-1)end=cookiesText.length;cookieValue=unescape(cookiesText.substring(offset,end));return cookieValue;}
return'';}
return{IsLocal:true,DataLoaded:function(name,data){UserData[name]=data;},Loaded:function(){if(!UserData['CurrentVersion']){App.ajax.require("routines/compiler/content.php?url=start&navlang="+App.user.browser.lang+"&timezone="+parseInt(new Date().getTimezoneOffset()/60))
if(getURLParam('preset'))
App.ajax.require("routines/compiler/js.php?url=tools/presets/"+escape(getURLParam('preset'))+'&version='+App.CurrentVersion);}
this.Loaded=this.DataLoaded=null;this.Login=readCookie('Login');},Load:function(){App.ajax.require("routines/login/udata_safe.php?op=read&v="+readCookie('LastUpdated')+(this.Login?'&l=1':''));},Login:readCookie('Login'),CheckLogin:function(){if(this.Login!=readCookie('Login')){if(App.advert&&App.advert.displayError)
App.advert.displayError("logout");return false;}
return this.Login==readCookie('Login');},WriteRawCookie:function(name,value,temporary){var date_exp=new Date();date_exp.setTime(date_exp.getTime()+(6*31*24*3600000));document.cookie=name+"="+value+";path=/;domain=.ustart.org;"+(!temporary?"expires="+date_exp.toGMTString()+";":'');document.cookie=name+"="+value+";path=/;"+(!temporary?"expires="+date_exp.toGMTString()+";":'');},SaveCookies:function(){if(!this.CheckLogin())return;IsSending=true;TimerSave=0;this.WriteRawCookie("LastUpdated",new Date().getTime());var Text="&_bg=1";for(var name in ToSave){Text+="&"+name+"="+escape(JSONHelper.ToText(UserData[name]));}
Text+="&_us="+escape(this.Login)+"&_ed=1";ToSave=null;App.ajax.PostFile("routines/login/udata_safe.php?op=save",Text,function(response){if(response)
eval(response);IsSending=false;if(ToSave!=null)
TimerSave=window.setTimeout("App.data.SaveCookies();",300);},null,null);},ReloadPage:function(){if(!IsSending&&!TimerSave)window.setTimeout("location.replace(location.href.indexOf('#')>-1?location.href.substr(0,location.href.indexOf('#')):location);",100);else window.setTimeout("App.data.ReloadPage();",100);},GetCookie:function(name){return UserData[name];},SetCookie:function(name,value){if(name&&(typeof(value)=="object"||UserData[name]!=value)&&typeof(value)!="undefined"&&!(value==''&&typeof(UserData[name])=="undefined")){UserData[name]=value;if(this.Loaded!=null)return;if(!ToSave)ToSave={};ToSave[name]=1;if(!IsSending){if(TimerSave){clearTimeout(TimerSave);TimerSave=0;}
TimerSave=window.setTimeout("App.data.SaveCookies();",300);}}}}})();App.data.Load();function SetCookie(name,value){return App.data.SetCookie(name,value);}
function GetCookie(name){return App.data.GetCookie(name);}
App.menu=(function(){var current_section=-1;var sections=[];function Load(callback){if(!sections.length)
App.apis.LoadAPI("menus",callback);else
callback();}
function Build(tabHTML){var HTML='<div style="background:#DADADA;height:4px;border-bottom:1px solid #B3B3B3"></div><div style="border-top: 1px solid rgb(179, 179, 179); border-bottom: 1px solid rgb(179, 179, 179); width: 100%;color:white; background-color:white;background:#74777A repeat-x url(include/skins/SettingsRightBg.jpg)" class="png_background"><table cellpadding=0 cellspacing=0 style="width:100%"><tr><td valign="top" style="background:#54585C repeat-x url(include/skins/SettingsLeftBg.jpg);border-right:1px solid #999" width="220" align="left" class="png_background"><div style="margin:10px;margin-top:30px;border-bottom:2px solid grey;height:0px;"></div>';for(var i=0;i<sections.length;i++){if(sections[i]==null){HTML+="<div style='margin:10px;border-bottom:2px solid grey;height:0px;'></div>";continue;}
HTML+="<div style='font-size:9pt;padding:2px 0px 2px 10px;margin:3px 0px 3px 10px;"+(i==current_section?"background:#999999":"")+"'><a  "+(i==current_section?"":"href='javascript:' onclick='App.menu.show("+i+")'")+">"+sections[i].getTitle(i)+"</a></div>";}
HTML+='</td><td valign="top">'
+tabHTML
+'</td>'
+'<td valign="top" align="right"><a href="javascript:;" onclick="App.menu.hide()" style="margin:2px;"><img border="0" src="include/skins/close.gif"></a></td>'
+'</tr></table></div><div style="background:#DADADA;height:4px;border-top:1px solid #B3B3B3"></div>';return HTML;}
return{sections:sections,getButton:function(){return'<table cellpadding="0"  cellspacing="0" align="right"><tr><td style="padding-top:2px;padding-right:3px" valign="top">'
+'<a href="javascript:;" onclick="ShareHelper.Share(location.href,document.title,\'http://www.ustart.org/include/skins/logo_ustart.png\');" title="'+_L('Bookmarker cette page')+'" style="margin-right:5px">'
+'<IMG  src="include/skins/favorite.'+(App.user.browser.ISIE6?'gif':'png')+'">'
+'</a><a href="javascript:;" onclick="ShowHelp();" title="'+_L('Afficher l\'Aide')+'">'
+'<IMG  src="include/skins/question.'+(App.user.browser.ISIE6?'gif':'png')+'">'
+'</a></td><td align="left" class="menuButton">'
+'  <a href="javascript:;" onclick="App.menu.toggleView()">'
+App.ui.ButtonHelper.GetHTML(_L('Personnalisez votre page'))
+'</a></td></tr><tr><td colspan="2" id="menu_add"  style="text-align:left;border-top:#7F9BD9 1px solid;background:white;display:none;padding:2px;"><div id="menu_preview"></div><div style="height:400px;width:205px;overflow:auto;" id="menuscroll"></div></td></tr></table>';},toggleView:function(){switch($G('menu').style.display){case'':this.hide();break;case'none':if(current_section==-1){this.show();}else{var object=$G('menu');App.fx.fadeIn(object);}
break;}},hide:function(){if(!App.user.browser.ISIE||App.user.browser.ISIE8)
App.fx.fadeOut($G('menu'));else
$G('menu').style.display='none';},show:function(section,cat,elem){if(current_section<0)current_section=0;if(typeof(section)!="undefined")current_section=section;var object=$G('menu');Load(function(){object.innerHTML=Build(sections[current_section].getSection(current_section,cat,elem));App.fx.fadeIn(object);sections[current_section].postSection(current_section,cat,elem);});},preview:function(widget,data){var object=$G('menu');Load(function(){current_section=-2;object.innerHTML=Build(App.menu.previewWidget.getSection(widget,data));App.fx.fadeIn(object);App.menu.previewWidget.postSection(widget,data);});}}})();
function DisconnectUser(){var expDate=new Date();expDate.setTime(expDate.getTime()-1600000);document.cookie="Login=deleted;expires="+expDate.toGMTString()+";path=/";document.cookie="PasswordEnc=deleted;expires="+expDate.toGMTString()+";path=/";document.cookie="Login=deleted;expires="+expDate.toGMTString()+";path=/;domain=.ustart.org";document.cookie="PasswordEnc=deleted;expires="+expDate.toGMTString()+";path=/;domain=.ustart.org";App.data.WriteRawCookie('LastUpdated',new Date().getTime());App.data.ReloadPage();}
function Crypt(s){var ns="";for(var i=0;i<s.length;i++)ns+=String.fromCharCode(s.charCodeAt(i)+i-4);return ns;}
function Logged(user,pass,permanent,token){App.data.WriteRawCookie('LastUpdated',new Date().getTime());App.data.WriteRawCookie("Login",user,!permanent);App.data.WriteRawCookie("PasswordEnc",escape(pass),!permanent);App.data.ReloadPage();}
function LoginUser(form){if(!form.user.value.length)return alert(_L('Erreur'));form.submiter.disabled=true;form.submiter.value=_L("Chargement en cours.....");App.ajax.GetFile("routines/login/login.php?v=2&user="+escape(form.user.value)+"&pass="+escape(Crypt(form.pass.value)),function(response){var response=response.split("/");switch(response[0]){case'NOTEXISTS':if(confirm(_L('Ce nom d\'utilisateur n\'existe pas, voulez-vous créer un compte?')))
ShowRegisterBox();break;case'ERROR':alert(_L('Informations de connexion incorrectes'));break;case-1:alert(_L('Erreur'));break;case'OK':Logged(form.user.value,response[1],form.permanent.checked);break;}
form.submiter.disabled=false;form.submiter.value=_L('Se connecter');});}
function SuscribeUser(form){if(!form.user.value.length)return alert(_L('Veuillez vérifier votre nom d\'utilisateur'));if(form.pass.value!=form.pass1.value)return alert(_L('Veuillez vérifier votre mot de passe'));if(form.email.value.indexOf("@")==-1)return alert(_L('Veuillez vérifier votre email'));form.submiter_create.value=_L("Chargement en cours.....");form.submiter_create.disabled=true;App.ajax.GetFile("routines/login/create.php?v=2&user="+escape(form.user.value)+"&pass="+escape(Crypt(form.pass.value))+"&email="+escape(form.email.value),function(response){var response=response.split("/");switch(response[0]){case"ERROR EXIST":alert(_L('Ce nom d\'utilisateur existe déjà'));break;case-1:case"ERROR":alert(_L('Erreur'));break;case'OK':Logged(form.user.value,response[1],form.permanent.checked);break;}
form.submiter_create.disabled=false;form.submiter_create.value=_L('Creer mon compte');});}
function DeleteAccount(){if(confirm(_L('Etes-vous sur de vouloir supprimer votre compte?'))){App.ajax.GetFile("routines/login/del.php",function(response){switch(response){case'OK':Logged("","");break;default:alert(_L('Erreur'));break;}});}}
function ChangePassword(form){if(!form.oldpass.value.length||!form.newpass.value.length)return alert(_L('Erreur'));App.ajax.GetFile("routines/login/param.php?user="+escape(App.data.Login)+"&pass="+escape(Crypt(form.oldpass.value))+"&npass="+escape(Crypt(form.newpass.value)),function(response){switch(response){case'OK':App.data.WriteRawCookie("PasswordEnc",escape(Crypt(form.newpass.value)));alert(_L('Mot de passe modifié'));$G('loginUser_mpdiv').style.display='none';break;default:alert(_L('Erreur'));break;}});}
function SendPassword(form){App.ajax.GetFile("routines/login/sendpassword.php?user="+escape(form.user.value),function(response){switch(response){case'OK':alert(_L('Mot de passe envoyé par mail'));break;default:alert(_L('Erreur'));break;}});ShowLoginBox();}
function ShowPasswordBox(){PopupHelper.ShowPopup('<form name="loginUser" action="javascript:;" style="margin:0;font-weight:bold;font-size:12px;padding:10px;" onsubmit="SendPassword(this);"><table width="100%"><tr><td width="70%" align="left">'
+_L('Nom d\'utilisateur :')+'<br><input type="text" name="user" style="width:90%;"><br><br>'
+'</tr></table><input type="submit"  class="button" style="font-weight:bold;font-size:12px;" name="submiter_create" value="'+_L('Envoyer mot de passe')+'"></form>',_L('Envoyer mot de passe'),440);}
function ShowRegisterBox(){PopupHelper.ShowPopup('<form name="loginUser" action="javascript:;" style="margin:0;font-weight:bold;font-size:12px;padding:10px;" onsubmit="SuscribeUser(this);"><table width="100%"><tr><td align="left">'
+_L('Nom d\'utilisateur :')+'<br><input type="text" name="user" style="width:90%;"><br><br>'
+_L('E-Mail :')+'<br><input type="text" name="email" style="width:90%;"><br><br>'
+_L('Mot de passe :')
+'<br><input type="password" name="pass"  style="width:90%"><br><br>'
+_L('Confirmer le mot de passe :')
+'<br><input type="password" name="pass1"  style="width:90%">'
+'<input name="permanent" type="checkbox" style="display:none" checked="checked"><br><br>'
+'</td></tr><tr><td><input type="submit"  class="button" style="font-weight:bold;font-size:12px;" name="submiter_create" value="'+_L('Creer mon compte')+'"></td></tr></table></form>',_L('Inscription'),390);}
function ShowLoginBox(){PopupHelper.ShowPopup('<div style="margin:10px;margin-bottom:2px;padding:3px;border:1px solid #009ADF;background:#77CAEF">'+_L('Après inscription vous pouvez accéder à votre page à partir de n\'importe quel ordinateur.')+'</div><form name="loginUser" action="javascript:;" style="margin:0;font-weight:bold;font-size:12px;padding:10px;" onsubmit="LoginUser(this);"><table><tr><td width="70%" align="left">'
+_L('Nom d\'utilisateur :')+'<br><input type="text" name="user" style="width:90%;"><br><br>'
+_L('Mot de passe :')+'<a style="cursor:pointer" onclick="ShowPasswordBox()"> '+_L('oublié?')
+'</a>'+'<br><input type="password" name="pass"  style="width:90%"><br>'
+'<input name="permanent" type="checkbox" checked="checked">'+_L('Se Souvenir de moi')+'<br>'
+'</td></tr><tr><td align="left"></td></tr><tr><td><input type="submit"  class="button" style="cursor:pointer;font-weight:bold;font-size:12px;" name="submiter" value="'+_L('Se connecter')+'">&nbsp;&nbsp;<span style="font-weight:bold;text-decoration:underline;"><a href="javascript:;" onclick="ShowRegisterBox()">'+_L('Inscrivez-vous gratuitement!')
+'</a></span></td></tr></table></form>',_L('Connexion'),390);}
function WriteLoginBox(){if(App.data.IsLocal){document.write('<br><div style="text-align:center" id="loginButton"><a href="javascript:;" onclick="ShowLoginBox()"><img src="include/skins/login.png"> '+_L('Vous connecter')+'</a></div>');}else{document.write('<div style="text-align:center;"><a href="javascript:;" onclick="DisconnectUser()">'+_L('Connecté : ')+'<b>'+App.data.Login+'</b><br><img src="include/skins/login.png"> <span style="text-decoration:underline;">'+_L('Se déconnecter')+'</span></a></div>');}}